﻿@model IEnumerable<DistanceLearning.Models.UserProfile>

@{
    Layout = null;
}

<table>
    <tr>
        <th>ID</th>
        <th>Никнейм</th>
        <th>Школа</th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.UserId)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.UserName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.School.SchoolName)
        </td>
    </tr>
}
</table>